package Eyjafjalla.card.skill;

import Eyjafjalla.action.DrawCloudAction;
import Eyjafjalla.action.FollowHeartAction;
import Eyjafjalla.action.LittleFeelingsAction;
import Eyjafjalla.card.AbstractEyjafjallaCard;
import Eyjafjalla.modcore.EyjafjallaTag;
import com.megacrit.cardcrawl.cards.AbstractCard;
import com.megacrit.cardcrawl.characters.AbstractPlayer;
import com.megacrit.cardcrawl.core.CardCrawlGame;
import com.megacrit.cardcrawl.localization.CardStrings;
import com.megacrit.cardcrawl.monsters.AbstractMonster;

public class LittleFeelings_Eyjafjalla extends AbstractEyjafjallaCard {
    public static final String ID = "LittleFeelings_Eyjafjalla";
    private static final CardStrings cardStrings;

    public LittleFeelings_Eyjafjalla(){
        super(ID, cardStrings.NAME,-1,cardStrings.DESCRIPTION,CardType.SKILL,CardRarity.UNCOMMON,CardTarget.ENEMY);
        setFireDescription(cardStrings.EXTENDED_DESCRIPTION[0]);
        this.tags.add(EyjafjallaTag.HEART_EYJAFJALLA);
    }

    @Override
    public AbstractCard makeCopy() {
        return new LittleFeelings_Eyjafjalla();
    }

    @Override
    public void use(AbstractPlayer p, AbstractMonster m) {
        int extra = 0;
        if(upgraded)
            extra++;
        addToBot(new LittleFeelingsAction(m,freeToPlayOnce,energyOnUse,extra,isFire()));
    }

    @Override
    public void upgrade() {
        if(!this.upgraded){
            upgradeName();
            rawDescription = cardStrings.UPGRADE_DESCRIPTION;
            initializeDescription();
        }
    }

    static {
        cardStrings = CardCrawlGame.languagePack.getCardStrings(ID);
    }
}
